package game;
import java.awt.Color;
import java.awt.Graphics;


public class HUD 
{
	private int height;

	public HUD(int h) 
	{
		height = h;
	}

	public int getHeight() 
	{
		return height;
	}

	public void paint(Graphics g, int score, int set, boolean mapTest) 
	{
		g.setColor(Color.black);
		g.fillRect(0, Map.getHeight()*10, Map.getWidth()*10, height);
		g.setColor(Color.white);
		g.drawRect(0, Map.getHeight()*10, Map.getWidth()*10, height);
		g.setColor(Color.red);
		g.drawString("Score: "+score, 20, Map.getHeight()*10+20);
		if(mapTest)
		{
			g.drawString("Press M to continue editing the map", 200, Map.getHeight() * 10 + 70);
		}
		if(set == 1)
		{
			g.drawString("Game Over", 230, Map.getHeight() * 10 + 40);
			g.drawString("Press Enter to Play again", 200, Map.getHeight() * 10 + 55);
			if(!mapTest)
			{
				g.drawString("Press M to go back to the menu", 200, Map.getHeight() * 10 + 70);
			}
		}
		if(set == 2)
		{
			g.drawString("Press Enter to Start", 200, Map.getHeight() * 10 + 40);
		}
		if(set == 3)
		{
			g.drawString("Pause", 200, Map.getHeight() * 10 + 40);
		}
	}
	
}
